//
//  NSMediaEdit.h
//  ShowDanceDemo
//
//  Created by cc on 15/10/28.
//  Copyright © 2015年 cc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <MobileCoreServices/UTCoreTypes.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import <AVFoundation/AVFoundation.h>

//#import "MyAlertView.h"
typedef void(^ExportCompleteBlock)(NSURL *url);
typedef void(^ProgressBlock)(float prog);
typedef void(^VideoCompressBlock)(NSURL*videoUrl);
typedef void (^FailureBlock)(NSError *error);
@interface NSMediaEdit : NSObject
@property(nonatomic, strong) AVAsset *videoAsset;
@property(nonatomic,strong) NSURL *outPutVideoUrl;
@property(nonatomic, assign) CMTimeRange myTimeRange;

@property(nonatomic,assign)BOOL needSaveToAlbum;
@property(nonatomic,copy)NSString * dancerName;
@property(nonatomic,copy)NSString * teacherName;
@property(nonatomic,copy)NSString * composerName;
@property(nonatomic,copy)NSString * anounce;
@property(nonatomic,assign)float bgRotateArc;
@property(nonatomic,strong)ExportCompleteBlock completeBlock;
@property(nonatomic,strong)VideoCompressBlock videoCompressBlock;
@property(nonatomic,strong)FailureBlock failureBlock;
@property(nonatomic,strong)ProgressBlock progressBlock;



-(void)startTimer;
-(void)updateTimer;
-(void)stopTimer;

@end
